import http from '@/utils/http';

export const getConfig = (data) => http.post('/wepoker/system/get/config', data);

export const getUserRASPubKey = (data) => http.get('/wepoker/system/getUserRASPubKey.anon', { params: data });

export const phoneLogin = (data) => http.post('/wepoker/user/phone_login', data);

export const sendVerifyCode = (data) => http.post('/wepoker/user/send_update_device_security_code', data);

export const verifyUpdateDevice = (data) => http.post('/wepoker/user/verify_update_device_security_code', data);

export const pkwAuth = (data) => http.post('/wepoker/pkw/auth', data);

export const getMiniGameOnlineUsers = (data) => http.post('/wepoker/littleGame/getMiniGameOnlineUsers', data);

export const getClubList = (data) => http.post('/wepoker/getClubList.ajax', data);

export const getRoomHistory = (data) => http.post('/wepoker/getRoomHistory.ajax', data);

export const getRoomDetail = (data) => http.post('/wepoker/statistics/room_detail', data);

